import requset from '@/utils/http'

export const getProductAPI = (id:number|string)=>{
    return requset({
        url:'/goods',
        params:{
            id:id
        }
    })
}

export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return requset({
        url:'/goods/hot',
        params:{
            id,
            type,
            limit
        }
    })
}

